awilliam@xenbuild.aw [Sun, 21 May 2006 13:49:46 +0000 (07:49 -0600)]
[IA64] Enable P2M/VP by default
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
awilliam@xenbuild.aw [Sun, 21 May 2006 13:31:02 +0000 (07:31 -0600)]
[IA64] add missing ia64_trace_syscall privop
This patch adds a missing privop definition for ia64_trace_syscall
when CONFIG_XEN is unset. It also cleans up some inconsistent
spacing.
Signed-off-by: Aron Griffis <aron@hp.com>
awilliam@xenbuild.aw [Sun, 21 May 2006 13:28:05 +0000 (07:28 -0600)]
[IA64] make it possible to disable CONFIG_XEN
This patch helps distro inclusion efforts by making it possible to
build a xen-patched Linux kernel with CONFIG_XEN disabled.
Signed-off-by: Aron Griffis <aron@hp.com>
awilliam@xenbuild.aw [Sun, 21 May 2006 13:24:51 +0000 (07:24 -0600)]
[IA64] sparse-merge: check SPARSEDIR for modifications
Check SPARSEDIR for modifications before allowing the merge.
This removes the need for the FIXME. Additionally clean up
empty diffs at the end of the run.
Signed-off-by: Aron Griffis <aron@hp.com>
awilliam@xenbuild.aw [Sun, 21 May 2006 13:22:58 +0000 (07:22 -0600)]
[IA64] minor fix for sparse-merge
Here's another sparse-merge patch to allow ARCH to be set on the
command-line, and to add -C to the final hg update since it's probably
switching between branches.
Signed-off-by: Aron Griffis <aron@hp.com>
awilliam@xenbuild.aw [Thu, 18 May 2006 20:05:30 +0000 (14:05 -0600)]
[IA64] panic when ioremap hypercall fails.
This can occur when dom0 vp model xenlinux is used on P=M model xen/ia64.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Wed, 17 May 2006 22:31:46 +0000 (16:31 -0600)]
[IA64] pte_xchg added
pte_xchg added to atomically exchange pte.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Wed, 17 May 2006 21:53:14 +0000 (15:53 -0600)]
[IA64] add parameter check to ioremap hypercall
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Wed, 17 May 2006 21:53:05 +0000 (15:53 -0600)]
[IA64] struct mm is now a field of struct domain
struct mm is now a field of struct domain (instead of a pointer).
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Wed, 17 May 2006 21:53:00 +0000 (15:53 -0600)]
[IA64] Correctly set aml code of domU dsdt.
Previously it was corrupted (bad length).
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Wed, 17 May 2006 21:52:55 +0000 (15:52 -0600)]
[IA64] Fix xm pause/unpause bug
This small patch intends to fix domain pause/unpause bug.
Current xm pause operation will do sync_vcpu_execstate to
sync vcpu status, but it saves dom0's fpu and other registers
to VTi domain or domainU due to xm pause from control panel.
Because sync_vcpu_execstate was called after vcpu_sleep which
has saved all status when schedule out ,in addition, currently
no lazy states need to be saved in IPF side, so sync_vcpu_execstate
would need do nothing now.
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Zhang xiantao <xiantao.zhang@intel.com>
awilliam@xenbuild.aw [Wed, 17 May 2006 21:52:10 +0000 (15:52 -0600)]
[IA64] Fix VTi domain destroy bug
This patch will fix VTi domain destroy bug. On tip, we couldn't
destroy VTi successfully at times. It was caused by misusing
vhpt base address for VTi domain in vhpt_flush function.
Signed-off-by : Zhang xiantao <xiantao.zhang@intel.com>
awilliam@xenbuild.aw [Tue, 16 May 2006 18:54:26 +0000 (12:54 -0600)]
[IA64] Include automated sparse merge script
This script automates merging the sparse tree to new upstream
kernel revisions. When possible the files are automatically
patched to the new version, if that fails, the xen and upstream
patches are tried in reverse order, if that fails, the method
producing the smallest reject is left for manual merging.
Run as:
# LINUXPATH=$HOME/linux-2.6 sparse-merge
Where LINUXPATH is a local mercurial tree of the upstream kernel
(available from http://www.kernel.org/hg/linux-2.6). NEWTAG and
OLDTAG may also be specified if the autodetection does not work.
By default, NEWTAG will be the latest upstream version. If NEWTAG
or OLDTAG is an extra-version (ex. 2.6.16.13), ketchup will be
used to update the mercurial tree and add the appropriate tag.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Aron Griffis <aron@hp.com>
awilliam@xenbuild.aw [Tue, 16 May 2006 18:07:09 +0000 (12:07 -0600)]
[IA64] P2M/VP build fix
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
awilliam@xenbuild.aw [Tue, 16 May 2006 16:35:58 +0000 (10:35 -0600)]
[IA64] vhtp clean-up
Create a clean interface for vhpt/tlb.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Tue, 16 May 2006 15:05:36 +0000 (09:05 -0600)]
[IA64] Allow multiple-time mmap of the privcmd device
Allow multiple-time mmap of the privcmd device. The old implemntation
doesn't allow multiple-time mmap for a same struct file_struct.
However xend or qemu does multiple-time mmap.
This patch affects only dom0 vp model. With this patch multiple domu can
boot simultaneously and vti domain can boot on vp model dom0.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Tue, 16 May 2006 14:59:26 +0000 (08:59 -0600)]
[IA64] Fix VTi
This patch should fix VTi broken bug, though it will waste 8 pages.
Once change Qemu's related code, we can find this 8 pages back
Signed-off-by: Zhang Xiantao <xiantao.zhang@intel.com>
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
awilliam@xenbuild.aw [Mon, 15 May 2006 20:12:07 +0000 (14:12 -0600)]
[IA64] Get rid of dcr bit 63 trick.
(Use ar.rsc.pl instead).
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Mon, 15 May 2006 19:42:18 +0000 (13:42 -0600)]
[IA64] Strengthen dom0_getmemlist
reset num_pfns before hypercalling, more checks in hypercall, cleanup
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Mon, 15 May 2006 16:53:23 +0000 (10:53 -0600)]
[IA64] move evtchn_vector to shared_info
Move evtchn_vector from vcpu_info to shared_info.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Sun, 14 May 2006 15:16:21 +0000 (09:16 -0600)]
[IA64] Fix VTI boot
fix cset 10003. the variable, end, of
vmx_build_physmap_table() also must adjusted.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Fri, 12 May 2006 16:21:57 +0000 (10:21 -0600)]
[IA64] bug fix (for SMP-g)
Bug fix for SMP-g: correctly set vcpu_info and map shared_info.
(vcpu_info is set by common code).
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Fri, 12 May 2006 15:03:04 +0000 (09:03 -0600)]
[IA64] xen: remove mm_struct::pt_list
removed pt_list member of struct mm_struct.
It is now unecessary.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Fri, 12 May 2006 14:58:56 +0000 (08:58 -0600)]
[IA64] xen: implemanted domain destruction again
implemented domain destruction.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Fri, 12 May 2006 14:55:50 +0000 (08:55 -0600)]
[IA64] xen: fix vmx_build_physmap_table()
fix vmx_build_physmap_table(). avoid map pages to the area
[VGA_IO_START, VGA_IO_START + VGA_IO_SIZE].
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Fri, 12 May 2006 14:53:49 +0000 (08:53 -0600)]
[IA64] linux: remove dom0vp_populate_physmap hypercall
dom0 vp model: remove populate_physmap hypercall which becomes unnecesarry
because xenmem operation is fully supported by the previous patch.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Fri, 12 May 2006 14:49:40 +0000 (08:49 -0600)]
[IA64] xen: remove dom0vp_populate_physmap hypercall
remove populate_physmap hypercall which becomes unncesarry because
XENMEM op is fully supported.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Fri, 12 May 2006 14:47:07 +0000 (08:47 -0600)]
[IA64] xen: balloon driver support
preliminary changes for balloon driver support of xen/ia64.
This breaks domain destruction. This will be fixed later.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Fri, 12 May 2006 14:27:51 +0000 (08:27 -0600)]
[IA64] Fix a vtlb bug and do some cleanup
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
awilliam@xenbuild.aw [Fri, 12 May 2006 14:13:18 +0000 (08:13 -0600)]
[IA64] put hot vhpt entry at VHPT HEADER
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
awilliam@xenbuild.aw [Fri, 12 May 2006 14:10:01 +0000 (08:10 -0600)]
[IA64] Clear rse invalid partition before resuming to VTi guest
This patch intends to provide mechanism for clearing rse invalid
partition before rbs switch to guest. To avoid leaking hypervisor
bits to guest, it is a must to clear registers which are in
invalid partition before leaving hypervisor.
Singed-off-by: Zhang xiantao <xiantao.zhang@intel.com>
awilliam@xenbuild.aw [Thu, 11 May 2006 19:16:04 +0000 (13:16 -0600)]
[IA64] Fix Alt DTLB error message
Signed-off-by: Tetsu Yamamoto <yamamoto.tetsu@jp.fujitsu.com>
awilliam@xenbuild.aw [Thu, 11 May 2006 19:13:37 +0000 (13:13 -0600)]
[IA64] NR_hypercalls definition on IA64
This is a patch for NR_hypercalls definition.
It effects (on IA64)
1)xenperf work
2)make perfc=y compile succeed.
At this moment, xenperf@IA64 can monitor 3 counters.
sched: timer
sched: runs through scheduler
sched: context switches
This code is just moved from
xen/include/asm-x86/config.h
Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
awilliam@xenbuild.aw [Thu, 11 May 2006 19:06:23 +0000 (13:06 -0600)]
[IA64] Remove warning (process.c)
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
awilliam@xenbuild.aw [Wed, 10 May 2006 23:07:06 +0000 (17:07 -0600)]
[IA64] update xenivt.S and xenentry.S
Update xenentry.S and xenivt.S for linux 2.6.16.13.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Wed, 10 May 2006 21:58:36 +0000 (15:58 -0600)]
[IA64] linux: MULTI_update_va_mapping definition to copmile netback and netfront
add trivial definitions, MULTI_UVMFLAGS_INDEX and MULTI_update_va_mapping()
to compile netback and netfront
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Wed, 10 May 2006 21:57:04 +0000 (15:57 -0600)]
[IA64] linux: maddr_t definition to compile netback and netfront
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Wed, 10 May 2006 21:55:21 +0000 (15:55 -0600)]
[IA64] linux: ia64 coreMakefile clean up
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Wed, 10 May 2006 21:54:00 +0000 (15:54 -0600)]
[IA64] linux: ia64 drivers Makefile clean up
makefile clean up.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Wed, 10 May 2006 21:52:06 +0000 (15:52 -0600)]
[IA64] linux: ia64 Kconfig
changes of kconfig for dom0 vp model.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Wed, 10 May 2006 21:50:27 +0000 (15:50 -0600)]
[IA64] Display the information in fault handler
This patch modifies the interruption handler to display the
information about the interruption and then do panic in the case of the
fault occurred in hypervisor, or reflect to the guest when handling the
fault in guest.
The modification is as follows:
1. In each handler in IVT, the procedure is added to branch to fault
handler or reflection according to ipsr.cpl.
2. In the case of the fault occurred in hypervisor(ipsr.cpl==0), the
fault handler displays the information (vector, registers, and stack by
calling show_registers()), and then do panic().
3. In the case of the fault occurred in guest(ipsr.cpl!=0), it is
reflected to the guest.
With this modification, some faults which were always treated to be
reflected to the guest are changed to do panic when they occur in
hypervisor.
Signed-off-by: Tetsu Yamamoto <yamamoto.tetsu@jp.fujitsu.com>
awilliam@xenbuild.aw [Wed, 10 May 2006 21:29:54 +0000 (15:29 -0600)]
[IA64] ia64_new_rr7 rewritten + cleanup
ia64_new_rr7 rewritten (more compact).
Cleanup in xenasm.S
Define of shared_info_va removed.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Wed, 10 May 2006 21:29:48 +0000 (15:29 -0600)]
[IA64] SetVirtualAddressMap emulation support
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
awilliam@xenbuild.aw [Tue, 9 May 2006 22:56:45 +0000 (16:56 -0600)]
[IA64] add a default for XEN_IA64_DOM0_VP
Signed-off-by: Al Stone <ahs3@fc.hp.com>
awilliam@xenbuild.aw [Tue, 9 May 2006 21:25:32 +0000 (15:25 -0600)]
[IA64] remove remaining warnings in .S files
Add missing .endp in .S files.
Cleanup in Rules.mk.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Tue, 9 May 2006 21:23:33 +0000 (15:23 -0600)]
[IA64] panic -> panic domain
This patch uses panic domain instead of panic when the
panic happening is only related to current domain not whole system.
Signed-off-by: Zhang Xiantao <xiantao.zhang@intel.com>
awilliam@xenbuild.aw [Tue, 9 May 2006 18:42:44 +0000 (12:42 -0600)]
[IA64] compilation fix of ia64 hypervisor.c
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Tue, 9 May 2006 17:50:27 +0000 (11:50 -0600)]
[IA64] linux: HYPERVISR_update_va_mapping()
add the trivial definition, HYPERVISOR_update_va_mapping(), to compile
balloon driver.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Tue, 9 May 2006 17:47:15 +0000 (11:47 -0600)]
[IA64] linux: XENMEM op work around
xen/ia64 XENMEM_increase_reservation, XENMEM_decrease_reservation,
XENMEM_populate_reservation are broken.
work around for it.
This patch should be removed after those hypercalls are fixed.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Tue, 9 May 2006 17:46:00 +0000 (11:46 -0600)]
[IA64] linux: drivers/xen/util.c for ia64
xen/ia64 counter part of linux-2.6-xen-sparse/drivers/xen/util.c
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Tue, 9 May 2006 17:44:26 +0000 (11:44 -0600)]
[IA64] linux: privcmd_mmap() and direct_remap_pfn_range()
implemented direct_remap_pfn_range() and ia64-specific privcmd_mmap()
for foreing domain page mapping.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Tue, 9 May 2006 17:42:26 +0000 (11:42 -0600)]
[IA64] linux: arch_free_page()
add defeinitions of arch_free_page()
work around for PG_foreign. xen/ia64 uses PG_arch1.
This work around sould be removed once PG_foreign is taken.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Tue, 9 May 2006 17:41:06 +0000 (11:41 -0600)]
[IA64] linux: grant table hypercall work around
Current xen/ia64 grant table ignores some GNTMAP_xxx flags.
work around for that. This patch will be removed once the flags are supported.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Tue, 9 May 2006 17:40:00 +0000 (11:40 -0600)]
[IA64] linux: remove alloc_empty_foreign_map_page()
alloc_empty_foreign_map_page() in xenia64_init.c isn't used with
CONFIG_XEN_IA64_DOM0_VP enabled.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Tue, 9 May 2006 17:38:35 +0000 (11:38 -0600)]
[IA64] xen: grant table support
grant table support.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Tue, 9 May 2006 17:34:45 +0000 (11:34 -0600)]
[IA64] xen: 64KB vhpt size
dom0 vp model: make vhpt size smaller to 64KB. this is a temporal change.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Tue, 9 May 2006 17:33:29 +0000 (11:33 -0600)]
[IA64] xen: hypercall no clean up
use __HYERCALL_arch_0 for dom0vp hypercall.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Tue, 9 May 2006 17:32:08 +0000 (11:32 -0600)]
[IA64] linux: macro clean up
remove bogus macro usage in asm-ia64/hypercall.h
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Tue, 9 May 2006 17:29:34 +0000 (11:29 -0600)]
[IA64] linux: xen-mkbuildtree-pre more cleanup
more clean up on ia64 xen-mkbuildtree-pre.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
awilliam@xenbuild.aw [Mon, 8 May 2006 20:46:11 +0000 (14:46 -0600)]
merge with xen-unstable.hg
awilliam@xenbuild.aw [Mon, 8 May 2006 19:41:18 +0000 (13:41 -0600)]
[IA64] RSE incomplete cfm
In theory, after Guest executes "cover", incomplete frame changes to complete
frame. So Guest should set INCOMPL to 0 just after "cover". At least before
guest psr.ic and psr.i are turned on.
Previously, only when Guest executes "rfi", INCOMPL is set to 0. The window
between "cover" and "rfi" causes trouble in below scenario.
1. Application A calls system call.
2. In OS breaks handler entry, INCOMPL is 0. Due to its system call,
Linux kernel doesn't execute "cover".
3. Before returning to Application A, schedule happens, Application B begins
to run.
4. A TLB miss happens on the context of B, this may make INCOMPL 1, before
Returning to B, (that means "rfi" is not executed, and INCOMPL is still 1)
schedule happens again. A resumes to run with INCOMPL 1 (this is incorrect now).
5. As mentioned before, this is system call, "cover" is executed in
ia64_leave_kernel path. Because INCOMPL is 1, this "cover" is not actually
executed, but this "cover" should be executed.
5. Thus application A's frame is destroyed. Issue appears.
From: Anthony Xu <anthony.xu@intel.com>
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
awilliam@xenbuild.aw [Mon, 8 May 2006 19:08:37 +0000 (13:08 -0600)]
[IA64] cleanup hyperprivop definitions
Move hyperprivop definitions into arch-ia64.h
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
awilliam@xenbuild.aw [Mon, 8 May 2006 19:05:47 +0000 (13:05 -0600)]
[IA64] fix initrd start
Fix initrd start to work with P2M/VP
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
awilliam@xenbuild.aw [Mon, 8 May 2006 18:56:57 +0000 (12:56 -0600)]
[IA64] Removed warning messages
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
awilliam@xenbuild.aw [Mon, 8 May 2006 18:52:12 +0000 (12:52 -0600)]
[IA64] Fixed print_md
This patch fixed the domain memory information that print_md()
output.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
awilliam@xenbuild.aw [Mon, 8 May 2006 18:49:53 +0000 (12:49 -0600)]
[IA64] Fix RSE issue in VTI-domain
Signed-off-by: Anthony Xu <anthony.xu@intel.com>
awilliam@xenbuild.aw [Mon, 8 May 2006 18:47:54 +0000 (12:47 -0600)]
[IA64] slightly improve stability
vcpu_ptc_e: fix flush order.
vcpu_ptc_g: fix typo (only local vcpu v-tlb was flushed)
itlb_pte/dtlb_pte removed.
vcpu_itr_* and vcpu_itc_no_srlz call vcpu_set_tr_entry coherently.
in_tpa parameter of vcpu_translate removed.
handle_lazy_cover is now static and unused 'isr' removed.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
cl349@firebug.cl.cam.ac.uk [Mon, 8 May 2006 18:21:41 +0000 (19:21 +0100)]
Fix PAE build: add CONFIG_I2O_EXT_ADAPTEC_DMA64=y to linux-defconfig_xen_x86_32.
From: Nakajima, Jun <jun.nakajima@intel.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Mon, 8 May 2006 16:18:19 +0000 (17:18 +0100)]
Make cscope hgignore wildcard a little bit less permissive.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Mon, 8 May 2006 15:41:22 +0000 (16:41 +0100)]
Make Xen version numbers more flexible.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
kaf24@firebug.cl.cam.ac.uk [Mon, 8 May 2006 13:54:22 +0000 (14:54 +0100)]
Add module license to xenbus_be, otherwise the module cannot be loaded.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
kaf24@firebug.cl.cam.ac.uk [Mon, 8 May 2006 13:53:09 +0000 (14:53 +0100)]
The current Xen code for VMX is setting the gp fault vmexiting in
the EXCEPTION_BITMAP vmcs control. There is no need for that as VMM is
just plainly re-injecting back to the guest. The attached is a simple
patch to set the vmcs control properly.
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
cl349@firebug.cl.cam.ac.uk [Mon, 8 May 2006 09:36:13 +0000 (10:36 +0100)]
Fix code which finds the default interface if there are static routes.
The current code will break if there are multiple scope global routes
since the "ip route list default" command doesn't use "default" as a
filter, and will output multiple devices which breaks the rest of the
script.
Also make the vif/xenbr/eth naming consistent, i.e. if your default
network interface is eth1, you get vif1 and xenbr1.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
stekloff@dyn9047022152.beaverton.ibm.com [Sun, 7 May 2006 20:41:36 +0000 (21:41 +0100)]
The buildroot xm-test grabs is no longer present, this patch fixes it.
Made it a minor release bump for xm-test so old ramdisk will work. The
ramdisk is functionally the same.
Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
emellor@leeni.uk.xensource.com [Sun, 7 May 2006 13:00:05 +0000 (14:00 +0100)]
Fix console runaway detection for the smallmem_neg test, following the changes
to have Console included as part of the Domain object.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Sun, 7 May 2006 12:34:45 +0000 (13:34 +0100)]
Abstract block-attach and block-detach calls, and add to that the correct
polling waiting for the device to connect and disconnect.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Sat, 6 May 2006 14:42:12 +0000 (15:42 +0100)]
Move the logic to find the Xen Python scripts above the import statements.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Fri, 5 May 2006 17:36:26 +0000 (18:36 +0100)]
Merged.
emellor@leeni.uk.xensource.com [Fri, 5 May 2006 17:36:12 +0000 (18:36 +0100)]
Use the auxbin module to find the appropriate install directory for our Python
scripts.
This fixes a bug with xm-test not working on 64-bit systems.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
emellor@leeni.uk.xensource.com [Fri, 5 May 2006 15:46:48 +0000 (16:46 +0100)]
Remove ssidref field from test -- this now only works if there is a policy in
place at the time.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 5 May 2006 14:15:56 +0000 (15:15 +0100)]
Add more in_irq() checking. Add irq_enter()/irq_exit() where
they are missing in a few places.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 5 May 2006 13:09:07 +0000 (14:09 +0100)]
Instead of just having the bootloader config sxp replace anything else,
merge with given values. This will allow a bootloader to not have to
specify everything which is useful for bootloaders other than pygrub.
Signed-off-by: Jeremy Katz <katzj@redhat.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 5 May 2006 13:05:31 +0000 (14:05 +0100)]
Fix injection of guest faults resulting from failed injection of a
previous event. We enter an infinite loop if the original failed
injection cannot be fixed up by Xen (e.g., because it's not a shadow
pagetable issue).
The RHEL4 HVM guest hang issue was actually a side effect of
change-set 9699. In the rhel4 guest hang rc.sysinit init-script was
calls kmodule program to probe the hardware. The kmodule uses the kudzu
library call probeDevices(). For probing the graphics hardware in the
vbe_get_mode_info() function, sets up the environment and goes into the
vm86 mode to do the int x10 call. For returning back to protected mode
it sets up a int 0xff call. At the time of calling the int 0xff the
guest process pages were not filled up. And it was causing an infinite
loop of vmexits with the IDT_VECTORING_INFO on the int 0xff instruction.
The reason for the infinite loop is changeset 9699. With that
the guest page fault was always getting overridden by the int 0xff gp
fault coming from the IDT_VECTORING_INFO. With the attached patch if VMM
is injecting exceptions like page faults or gp faults then
IDT_VECTORING_INFO field does not override it, and that breaks the
vmexit infinite loop for the rhel4.
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Edwin Zhai <edwin.zhai@intel.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 5 May 2006 13:01:43 +0000 (14:01 +0100)]
Fix python pciif script to reference correct 2.0 compatibility variable.
In the Xen 2.0.x compatibility section of xend (where we try to parse
the s-expressions if they came from an SXP configuration file for Xen
2.0.x), the wrong variable is referenced. This fix corrects the python
script to use the correct variable.
Thanks to Mike Wright for reporting this.
Signed-off-by: Ryan Wilson <hap9@epoch.ncsc.mil>
kaf24@firebug.cl.cam.ac.uk [Fri, 5 May 2006 12:59:17 +0000 (13:59 +0100)]
Fix dr access from or to extended registers on x86_64.
Also some cleanups.
Signed-off-by: Xin Li <xin.b.li@intel.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 5 May 2006 12:58:13 +0000 (13:58 +0100)]
Replace a bash-specific redirection in tools/ioemu/configure with a
standard POSIX one which allows the Xen tools to be built with a POSIX
shell other than bash.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
kaf24@firebug.cl.cam.ac.uk [Fri, 5 May 2006 12:57:16 +0000 (13:57 +0100)]
It's unnecessary on MOV CRn to use "q" or "l" to indicate default
oparand size.
Signed-off-by: Xin Li <xin.b.li@intel.com>
kaf24@firebug.cl.cam.ac.uk [Fri, 5 May 2006 12:51:03 +0000 (13:51 +0100)]
Replace a bash-specific substitution with equivalent POSIX /bin/sh
substitutions. This allows a Xen-patched Linux to build when /bin/sh
is a POSIX shell other than bash.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
kaf24@firebug.cl.cam.ac.uk [Fri, 5 May 2006 12:49:49 +0000 (13:49 +0100)]
Adjust skb->truesize appropriately in netback driver.
When you generate non-linear skb's as netback does, it is up to you
to ensure that truesize reflects the size of paged part of the skb.
Otherwise socket memory accounting in Linux falls apart.
Thanks to the new check that David Miller added to TCP we were able
to catch this bug.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
kaf24@firebug.cl.cam.ac.uk [Fri, 5 May 2006 12:46:59 +0000 (13:46 +0100)]
Fix IA64 transparent-virtualization issue (Xen may not be running).
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
kaf24@firebug.cl.cam.ac.uk [Fri, 5 May 2006 12:41:35 +0000 (13:41 +0100)]
Add missing spin_unlock_irq() at xen/arch/x86/irq.c
Changeset 9889:
42a8e3101c6c reorganized the code on this file, and
missed this spin_unlock_irq(). Without this patch, my machine hangs
completely during boot. With this, it works.
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
cl349@firebug.cl.cam.ac.uk [Thu, 4 May 2006 23:27:10 +0000 (00:27 +0100)]
Don't try to write to pmd pages, there is no writeable-pmd support.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
kaf24@firebug.cl.cam.ac.uk [Thu, 4 May 2006 20:24:39 +0000 (21:24 +0100)]
SVM patch for 64bit hv, to reset the ss, es, ds host selectors to NULL
during a context switch to the SVM domain's vcpu. This patch also
initializes the tlb_control to 1 for the initial do_launch().
Signed-off-by: Tom Woller <thomas.woller@amd.com>
cl349@firebug.cl.cam.ac.uk [Thu, 4 May 2006 16:44:14 +0000 (17:44 +0100)]
Linux: upgrade patches to 2.6.16.13.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
--HG--
rename : patches/linux-2.6.16/device_bind.patch => patches/linux-2.6.16.13/device_bind.patch
rename : patches/linux-2.6.16/i386-mach-io-check-nmi.patch => patches/linux-2.6.16.13/i386-mach-io-check-nmi.patch
rename : patches/linux-2.6.16/net-csum.patch => patches/linux-2.6.16.13/net-csum.patch
rename : patches/linux-2.6.16/pmd-shared.patch => patches/linux-2.6.16.13/pmd-shared.patch
rename : patches/linux-2.6.16/rename-TSS_sysenter_esp0-SYSENTER_stack_esp0.patch => patches/linux-2.6.16.13/rename-TSS_sysenter_esp0-SYSENTER_stack_esp0.patch
rename : patches/linux-2.6.16/smp-alts.patch => patches/linux-2.6.16.13/smp-alts.patch
rename : patches/linux-2.6.16/x86-increase-interrupt-vector-range.patch => patches/linux-2.6.16.13/x86-increase-interrupt-vector-range.patch
rename : patches/linux-2.6.16/xenoprof-generic.patch => patches/linux-2.6.16.13/xenoprof-generic.patch
cl349@firebug.cl.cam.ac.uk [Thu, 4 May 2006 16:38:25 +0000 (17:38 +0100)]
Linux: upgrade to 2.6.16.13.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
cl349@firebug.cl.cam.ac.uk [Thu, 4 May 2006 15:49:58 +0000 (16:49 +0100)]
Remove unused LINUX_SRCS.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
stekloff@dyn9047022152.beaverton.ibm.com [Thu, 4 May 2006 13:22:38 +0000 (14:22 +0100)]
Add a HOWTO to help writing tests, includes domains with networking.
Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
stekloff@dyn9047022152.beaverton.ibm.com [Thu, 4 May 2006 13:22:29 +0000 (14:22 +0100)]
Add new networking infrastructure to Xm-Test. The goal is to make
creating domains with networking very easy. This patch:
1) Adds new XenDevice class, with the XenNetDevice subclass. These
classes represent devices for xm-test and are tied to XenDomains.
This can eventually be used for block devices as well. Currently,
devices must be added to domains prior to starting the domain. The
attach and detach needs to be handled.
2) Adds a new NetConfig class to handle configuring the network
environment in which the tests run. This patch only handles ranges
of IPs in a bridged environment. DHCP needs to be added as well as
handling NAT and routed environments.
3) Modifies XenDomain class to handle XenDevices.
4) Adds new configuration options for defining a range of IPs, their
network address, and their netmask.
5) Removes the old Network.py and Network class.
6) Modifies the existing tests to use the new infrastructure.
7) Adds some documentation to help creating domains.
Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
emellor@leeni.uk.xensource.com [Thu, 4 May 2006 13:22:17 +0000 (14:22 +0100)]
Second step toward a new network infrastructure, move XmConsole to be
in XenDomain. The devices we will add, like network, will need to run
console commands when a domain is started. So I have made console be
a part of domain object, which it's tied to anyway.
Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
stekloff@dyn9047022152.beaverton.ibm.com [Thu, 4 May 2006 13:20:11 +0000 (14:20 +0100)]
First step to network infrastructure, add a type to XenDomain to identify
it as HVM or PV rather than using the config time option. The forthcoming
XenNetDevice will need to check. This is also the first step toward running
PV and HVM domains at the same time.
Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>